import unittest
import time
from scripts.test01_login import TestLogin
from scripts.test02_department import TestDepartment
from tools.HTMLTestRunner import HTMLTestRunner

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(unittest.makeSuite(TestDepartment))

# report = "./report/report-{}.html".format(time.strftime("%Y%m%d-%H%M%S"))
report = "./report/report.html"

with open(report, "wb") as f:
    runner = HTMLTestRunner(f, title="API Report")
    runner.run(suite)